home *** CD-ROM | disk | FTP | other *** search
- global gLoaded
-
- on exitFrame
- loadcount = 0
- membersNeeded = 0
- repeat with i = 1 to 40
- if string(member(i).type) <> "empty" then
- membersNeeded = membersNeeded + 1
- if member(i).mediaReady then
- loadcount = loadcount + 1
- end if
- end if
- end repeat
- loadPercent = integer(loadcount / float(membersNeeded) * 100.0)
- if loadPercent >= 100 then
- setVariable(sprite(1), "loaded", "1")
- gLoaded = 1
- info = "LOADED...CLICK TO PLAY"
- else
- info = "LOADING..." & string(loadPercent) & "%"
- end if
- setVariable(sprite(1), "loadInfo", info)
- go(the frame)
- end
-